1   package com.iluwatar;
2   
3   /**
4    * 
5    * Internal interface to memento.
6    * 
7    */
8   public class StarMementoInternal implements StarMemento {
9   
10  	private StarType type;
11  	private int ageYears;
12  	private int massTons;
13  
14  	public StarType getType() {
15  		return type;
16  	}
17  
18  	public void setType(StarType type) {
19  		this.type = type;
20  	}
21  
22  	public int getAgeYears() {
23  		return ageYears;
24  	}
25  
26  	public void setAgeYears(int ageYears) {
27  		this.ageYears = ageYears;
28  	}
29  
30  	public int getMassTons() {
31  		return massTons;
32  	}
33  
34  	public void setMassTons(int massTons) {
35  		this.massTons = massTons;
36  	}
37  }